package net.dgg.dggcloud.service.jrcrm.entity.cms;

import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName: Message
 * @Description: 信息实体
 * @author duqian
 * @date 2017年11月06日11:30:00
 *
 */

@Entity
@Table(name = "cms_message")
public class Message extends BaseEntity {

    /**
     *  接收人id
     */
    @Column(name="receiver_id")
    private Long receiverId;

    /**
     *  内容
     */
    @Column(name="content")
    private String content ;


    /**
     *  状态 0未读 1已读
     */
    @Column(name="read_flag")
    private Integer readFlag;

    /**
     *  查看时间
     */
    @Column(name="read_time")
    private Date readTime;

    /**
     * 类型 1普通消息  2重要消息
     */
    @Column(name="mes_type")
    private Integer mesType;
    /**
     *  发送状态 0未发送 1已发送
     */
    @Column(name="send_status")
    private Integer sendStatus;

    @Column(name="audio_type")
    private String audioType;

    public static final Integer READ_FLAG_NO = 0;//未读
    public static final Integer READ_FLAG_YES = 1;//已读

    public static final Integer MES_TYPE_MAIL = 1;//普通消息
    public static final Integer MES_TYPE_WARN = 2;//重要消息


    public Long getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Long receiverId) {
        this.receiverId = receiverId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getReadFlag() {
        return readFlag;
    }

    public void setReadFlag(Integer readFlag) {
        this.readFlag = readFlag;
    }

    public Date getReadTime() {
        return readTime;
    }

    public void setReadTime(Date readTime) {
        this.readTime = readTime;
    }

    public Integer getMesType() {
        return mesType;
    }

    public void setMesType(Integer mesType) {
        this.mesType = mesType;
    }

    public Integer getSendStatus() {
        return sendStatus;
    }

    public void setSendStatus(Integer sendStatus) {
        this.sendStatus = sendStatus;
    }

    public String getAudioType() {
        return audioType;
    }

    public void setAudioType(String audioType) {
        this.audioType = audioType;
    }
}
